package com.wolfpire.profession.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wolfpire.profession.dao.ProfessionDao;
import com.wolfpire.profession.service.ProfessionService;
import com.wolfpire.system.common.Page;
import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.system.common.base.service.impl.BaseHibernateService;
import com.wolfpire.system.model.Profession;
@Service("professionService")
public class ProfessionServiceImpl extends BaseHibernateService< Profession, Long> 
	implements ProfessionService {
	
	@Resource private ProfessionDao professionDao;
	

	public List<Profession> list(Profession profession) {
		// TODO Auto-generated method stub
		return this.professionDao.list(profession);
	}

	public Profession getByName(String name) {
		// TODO Auto-generated method stub
		return this.professionDao.getByName(name);
	}

	public Page<Profession> setPageDataList(Page<Profession> page,
			Profession filterProfession) {
		// TODO Auto-generated method stub
		return this.professionDao.findProfessions(page, filterProfession);
	}

	@Override
	protected IBaseHibernateDao<Profession, Long> getEntityDao() {
		// TODO Auto-generated method stub
		return this.professionDao;
	}

	public List<Profession> list(int num) {
		// TODO Auto-generated method stub
		return this.professionDao.list(num);
	}

}
